#include "Map.hh"
#include "Square.hh"
#include "Bug.h"
#include <iostream>
#include <iomanip>
#include <cassert>

Bug bug("test");
#ifdef DEBUG
int DEBUGTracker::depth = 1;
#endif


CacheMap torus;



int main(void)
{

  const unsigned X = 10;
  const unsigned Y = 10;

  torus.init(X,Y,sqrt(5),sqrt(1.),10);
  Map<Square> map;
  map.init();


  map.at(5,5).ant = 0;
  map.at(2,4).isWater = true;
  map.at(2,5).isWater = true;
  map.at(3,6).isWater = true;
  map.at(4,7).isWater = true;
  map.at(5,7).isWater = true;
  map.at(6,7).isWater = true;
  map.at(5,9).ant = 1;


  bug << "map test" << std::endl;

  bug << map << std::endl;


  return 0;
}
